<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "project_pre_evaluation_seal".
 *
 * @property string $id
 * @property string $mortgage_id 抵押本息信息
 * @property string $mortgage_type 抵押物类型
 * @property string $mortgage_address 抵押物地址
 * @property string $mortgage_district 所在区域
 * @property string $mortgage_building_area 建筑面积（平米）
 * @property string $mortgage_land_area 土地面积（平米）
 * @property string $mortgage_owner 权属人
 * @property int $is_first_mortgage 是否首押
 * @property string $mortgage_future 后续抵押情况
 * @property string $mortgage_state 抵/质押物情况
 * @property string $mortgage_seal_order 抵押物查封顺序
 * @property int $is_first_seal 是否首封
 * @property string $mortgage_seal_state 抵押物查封情况
 * @property string $mortgage_other_seal_order 非抵押物查封顺序
 * @property string $mortgage_other_seal_state 非抵押物查封情况
 * @property string $mortgage_code 抵押物编号
 * @property int $whether_exploration 是否详勘
 * @property string $other_warrants_code 他项权证号
 * @property string $created_at
 * @property int $lock_user 上锁用户
 * @property string $lock_timestamp 上锁时间
 * @property string $maximum_mortgage 最高抵押额度（元）
 * @property string $remaining_service_life 剩余使用年限
 * @property string $mortgage_order 抵押物抵押顺序
 * @property string $mortgage_situation 抵押情况描述
 */
class ProjectPreEvaluationSealClone extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'project_pre_evaluation_seal';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mortgage_id',], 'required'],
            [['mortgage_id', 'is_first_mortgage', 'is_first_seal', 'whether_exploration', 'lock_user'], 'integer'],
            [['mortgage_future', 'mortgage_state', 'mortgage_seal_order', 'mortgage_seal_state', 'mortgage_other_seal_order', 'mortgage_other_seal_state'], 'string'],
            [['created_at'], 'safe'],
            [['mortgage_type', 'mortgage_address', 'mortgage_district', 'mortgage_building_area', 'mortgage_land_area', 'mortgage_owner', 'mortgage_code', 'other_warrants_code', 'lock_timestamp', 'maximum_mortgage', 'remaining_service_life', 'mortgage_order', 'mortgage_situation'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'mortgage_id' => '抵押本息信息',
            'mortgage_type' => '抵押物类型',
            'mortgage_address' => '抵押物地址',
            'mortgage_district' => '所在区域',
            'mortgage_building_area' => '建筑面积（平米）',
            'mortgage_land_area' => '土地面积（平米）',
            'mortgage_owner' => '权属人',
            'is_first_mortgage' => '是否首押',
            'mortgage_future' => '后续抵押情况',
            'mortgage_state' => '抵/质押物情况',
            'mortgage_seal_order' => '抵押物查封顺序',
            'is_first_seal' => '是否首封',
            'mortgage_seal_state' => '抵押物查封情况',
            'mortgage_other_seal_order' => '非抵押物查封顺序',
            'mortgage_other_seal_state' => '非抵押物查封情况',
            'mortgage_code' => '抵押物编号',
            'whether_exploration' => '是否详勘',
            'other_warrants_code' => '他项权证号',
            'created_at' => 'Created At',
            'lock_user' => '上锁用户',
            'lock_timestamp' => '上锁时间',
            'maximum_mortgage' => '最高抵押额度（元）',
            'remaining_service_life' => '剩余使用年限',
            'mortgage_order' => '抵押物抵押顺序',
            'mortgage_situation' => '抵押情况描述',
        ];
    }

    /**
     * @inheritdoc
     * @return ProjectPreEvaluationSealQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new ProjectPreEvaluationSealQuery(get_called_class());
    }
}
